using Newtonsoft.Json;
using ycx;

namespace RFS.Domain.PaiShi.Zuhuo
{
    public class ZuhuaZiLingItem
    {
        private ZaHuaItem _zaHuaItem=new ZaHuaItem();
        public ulong Id { get; set; } = 1.NewSnowflakeId();
        public ulong ParentId { get; set; }

        
        [JsonIgnore]
        public ZaHuaItem ZaHuaItem
        {
            get => _zaHuaItem;
            set
            {
                1.TryRun(() => ZaHuaItemId = value.Id);
                //1.Echo();
                _zaHuaItem = value;
            }
        }

        public ulong ZaHuaItemId { get; set; }
    }
}